/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author zno
 */
public class Navigation {

    
    private boolean logout;
    private boolean checkout;

    private String name;
    private String password;

    private static Navigation nav;
    /** A private Constructor prevents any other class from instantiating. */
    private Navigation() {
            //	 Optional Code
    }
    /**
     * Retrieves the singleton object
     * @return the Singleton object
     */
    public static synchronized Navigation getSingletonObject() {
            if (nav == null) {
                    nav = new Navigation();
            }
            return nav;
    }
    /**
     * Prevents unwanted requests to clone the singleton
     * @return Throws an exception when the user tries to clone the Singleton
     * @throws CloneNotSupportedException 
     */
    public Object clone() throws CloneNotSupportedException {
            throw new CloneNotSupportedException();
    }
    /**
     * 
     * @return checkout status 
     */
    public boolean isCheckout() {
        return checkout;
    }
    /**
     * 
     * @param checkout Checkout status
     */
    public void setCheckout(boolean checkout) {
        this.checkout = checkout;
    }
    /**
     * 
     * @return logout status 
     */
    public boolean isLogout() {
        return logout;
    }
    /**
     * 
     * @param logout Logout Status
     */
    public void setLogout(boolean logout) {
        this.logout = logout;
    }
    /**
     * 
     * @return The Customer Name
     */
    public String getName() {
        return name;
    }
    /**
     * 
     * @param name Customer Name
     */
    public void setName(String name) {
        this.name = name;
    }
    /**
     * 
     * @return The Customer Password 
     */
    public String getPassword() {
        return password;
    }
    /**
     * 
     * @param password Customer Password
     */
    public void setPassword(String password) {
        this.password = password;
    }
    
    
        
}
